﻿<UserControl x:Class="TorchView.SharedStashEditor.Views.SharedStashView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:TorchView.SharedStashEditor.Views"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
    
        <StackPanel Orientation="Horizontal">
            <Button Command="{Binding ReloadStashCommand}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" IsTabStop="False" Focusable="False">
                <Image Source="/TorchView.SharedStashEditor;Component/Views/Images/Refresh_48x48.png" Width="16" Height="16" />
            </Button>
            <Button Command="{Binding SaveStashCommand}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" IsTabStop="False" Focusable="False">
                <Image Source="/TorchView.SharedStashEditor;Component/Views/Images/Save_16x16.png" Width="16" Height="16" />
            </Button>
        </StackPanel>
        <Border Grid.Row="1" CornerRadius="2" Background="#20FFFFFF" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1">
            <local:InventoryEditor DataContext="{Binding Inventory}"></local:InventoryEditor>
        </Border>
    </Grid>
</UserControl>
